package creation.factory.method;

class BJGreekPizza implements Pizza {
    private String type = "BJGreekPizza ";

    @Override
    public void prepare() {
        System.out.println(type + "prepare");
    }

    @Override
    public void baker() {
        System.out.println(type + "baker");

    }

    @Override
    public void cut() {
        System.out.println(type + "cut");

    }

    @Override
    public void box() {
        System.out.println(type + "box");

    }
}

class LDGreekPizza implements Pizza {
    private String type = "LDGreekPizza ";

    @Override
    public void prepare() {
        System.out.println(type + "prepare");
    }

    @Override
    public void baker() {
        System.out.println(type + "baker");

    }

    @Override
    public void cut() {
        System.out.println(type + "cut");

    }

    @Override
    public void box() {
        System.out.println(type + "box");

    }
}
